package com.zjitc.chapter11.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class MethodController {
    @RequestMapping(method = RequestMethod.GET)
    public void get() {
        System.out.println("MethodController.get");
    }
    @RequestMapping(method = RequestMethod.POST)
    public void post() {
        System.out.println("MethodController.post");
    }
    @RequestMapping(method = RequestMethod.PUT)
    public void put() {
        System.out.println("MethodController.put");
    }
    @RequestMapping(method = RequestMethod.DELETE)
    public void delete() {
        System.out.println("MethodController.delete");
    }
}
